package com.example.shiro_demo.vo;

import lombok.Getter;
import lombok.Setter;

/**
 * 返回类
 * @Author: wuzs
 * @Date: 2019/10/15 11:02
 */
@Getter @Setter
public class BaseResponse<T> {
    private int code = 200;
    private String msg = "SUCCESS";
    protected T result;
    public BaseResponse(){
    }
    public BaseResponse(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
    public BaseResponse(T result){
        this.result = result;
    }
    public BaseResponse(int code, String msg, T result){
        this(code, msg);
        this.result = result;
    }
}
